package Code;
//二维数组
public class Test11 {
    public static void main(String[] args) {
        //二维数组的动态初始化
        //格式：数据类型[][] 数组名 = new 数据类型[x][y];
        int[][] arr = new int[3][4];

        //赋值
        arr[0][0] = 1;

        //元素遍历
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j] + " ");
            }
        }
    }
}
